<?php

$var = 47;
$var += 7;
$var -= 18;
$var *= 10;
$var /= 20;
echo $var; // 23.5